package com.zxy.demo.junit.runners;

import org.junit.experimental.theories.ParametersSuppliedBy;
import org.junit.experimental.theories.Theories;
import org.junit.experimental.theories.Theory;
import org.junit.runner.RunWith;

/**
 * 
 * TheoriesTest3.
 * 
 * Created by zxybird on 17/5/15.
 */
@RunWith(Theories.class)
public class TheoriesTest3 {

  @Theory
  public void testMethod(@ParametersSuppliedBy(NameSupplier.class) String name,
      @ParametersSuppliedBy(AgeSupplier.class) int age) {
    System.out.println(String.format("%s's age is %s", name, age));
  }

}
